package com.aaa.hospital.ManagementEnd.service.Impl;

import com.aaa.hospital.ManagementEnd.mapper.CheckMapper;
import com.aaa.hospital.ManagementEnd.pojo.Check;
import com.aaa.hospital.ManagementEnd.service.CheckSer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CheckSerImpl implements CheckSer {

    @Autowired
    private CheckMapper checkMapper;
    @Override
    public List<Check> queryAll() {
        return checkMapper.queryAll();
    }

    @Override
    public List<Check> queryById(Integer yfid) {
        return checkMapper.queryById(yfid);
    }

    @Override
    public Check selectById(Integer ypid) {
        return checkMapper.selectById(ypid);
    }

    @Override
    public List<Check> select_id_ypName(Integer id, String ypname) {
        return checkMapper.select_id_ypName(id,ypname);
    }

    @Override
    public int insert(Check check) {
        return checkMapper.insert(check);
    }

    @Override
    public int updateZT(int id) {
        return checkMapper.updateZT(id);
    }

    @Override
    public boolean upnum(Integer ypid, Integer ypnum) {
        return checkMapper.upnum(ypid, ypnum);
    }

}
